
export class LocalStoreageUtil {
    // 本地存储
    public static set(key:string, value:any){
        value = JSON.stringify(value)
        localStorage.setItem(key,value);
    }
    // 取值
    public static  getValue(key:string):any {
        const value = localStorage.getItem(key)
        if(!value){
            return null;
        }
       return JSON.parse(value);
    }

    // 清空值
    public static removeValue(sky:string){
        localStorage.removeItem(sky);
    }
}